PATHCONF

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

pathconf - query file system related limits and options  

SYNOPSIS

#include <unistd.h>

long pathconf(const char *path, int name);
 

DESCRIPTION

pathconf provides a method for the application to determine the current value of a configurable limit or option that is associated with the file-system containing the file or directory named in path. The following parameters to pathconf are supported: Name Meaning Note _PC_LAST max limit # for pathconf NOT POSIX _PC_IOPEN_MAX internal limit on open files NOT POSIX _PC_LINK_MAX max # of links POSIX _PC_PATH_MAX max len of a full pathname POSIX _PC_NAME_MAX max len of individual name POSIX _PC_PIPE_BUF bytes written atomically to fifo POSIX _PC_NO_TRUNC filename truncation POSIX  

RETURN VALUES

pathconf returns the current variable value on success. On failure, it returns -1 and sets errno to indicate the error.  

SEE ALSO

sysconf(3), Dpathconf(2)  

NOTE

It's a pity this routine does not conform to POSIX; but then, it's even more a pity that MiNT does not comply...
 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
NOTE

This document was created by man2html, using the manual pages.
Time: 11:14:58 GMT, June 22, 2025